package com.example.bidding.feign;

import com.example.common.entity.Rsp;
import com.example.common.pojo.User;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class UserFeignFallBack implements UserFeign{


    @Override
    public Rsp getUserInfoById(User user) {
        return new Rsp(1,"获取用户信息失败");
    }

    @Override
    public Rsp getUserInfo(String token) {
        return new Rsp(1,"获取用户信息失败");
    }

    @Override
    public int subBalance(User user, BigDecimal cost) {
        return 1/0;
    }

    @Override
    public int refund(Integer borrowId) {
        return 1/0;
    }

    @Override
    public int addBalance(Integer id, BigDecimal cost) {
        return 1/0;
    }
}
